package com.drason.encapsulation;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.drason.encapsulation.loadmore.TestMyloadMoreActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

public class MainActivity extends AppCompatActivity {

    private Unbinder mUnbinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mUnbinder = ButterKnife.bind(this);
    }


    @OnClick({R.id.btn_loadmore})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.btn_loadmore:
                TestMyloadMoreActivity.start(this);
                break;
        }
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        mUnbinder.unbind();
    }
}
